package com.cly.entity;

import com.cly.base.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * 课节表
 *
 * @author by 春风能解释
 * <p>
 * 2024-06-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@NoArgsConstructor
@Schema(name = "课节表")
public class CourseNode extends BaseEntity implements Serializable {
    /**
     * 序列化字段
     */
    @Serial
    private static final long serialVersionUID = 8105196334935131196L;
    /**
     * 主题
     */
    @Schema(description = "主题")
    private String title;
    /**
     * 课程视频
     */
    @Schema(description = "课程视频")
    private Long video;

    /**
     * 排序
     */
    @Schema(description = "排序")
    private Integer sort;

    /**
     * 主讲人
     */
    @Schema(description = "主讲人")
    private Long userId;
    /**
     * 课程ID
     */
    @Schema(description = "课程ID")
    private Long courseId;
}